package cn.kgc.mes.mapper;

import java.util.List;
import cn.kgc.mes.domain.DvMachinery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 设备台帐Mapper接口
 * 
 * @author lhd
 * @date 2025-09-11
 */
public interface DvMachineryMapper extends BaseMapper<DvMachinery>
{
    /**
     * 查询设备台帐
     * 
     * @param machineryId 设备台帐主键
     * @return 设备台帐
     */
    public DvMachinery selectDvMachineryByMachineryId(Long machineryId);

    /**
     * 查询设备台帐列表
     * 
     * @param dvMachinery 设备台帐
     * @return 设备台帐集合
     */
    public List<DvMachinery> selectDvMachineryList(DvMachinery dvMachinery);

    /**
     * 新增设备台帐
     * 
     * @param dvMachinery 设备台帐
     * @return 结果
     */
    public int insertDvMachinery(DvMachinery dvMachinery);

    /**
     * 修改设备台帐
     * 
     * @param dvMachinery 设备台帐
     * @return 结果
     */
    public int updateDvMachinery(DvMachinery dvMachinery);

    /**
     * 删除设备台帐
     * 
     * @param machineryId 设备台帐主键
     * @return 结果
     */
    public int deleteDvMachineryByMachineryId(Long machineryId);

    /**
     * 批量删除设备台帐
     * 
     * @param machineryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDvMachineryByMachineryIds(Long[] machineryIds);
}
